home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Form & Validation / form2popup.izs < prev    next >
Text File  |  2005-08-29  |  1KB  |  40 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Form2PopUp script
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>This useful script allows you to target a form's submission to a new window, so the original page does not change once the "submit" button is pressed. Instead, a customizable pop up window is launched containing the destination page.
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>form and form validation<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <script type="text/javascript">
  14.  
  15. function createTarget(t){
  16. window.open("", t, "width=600,height=550");
  17. return true;
  18. }
  19.  
  20. </script>
  21. <form name="sampleform" method="POST" action="/cgi-bin/formsubmit.pl" onsubmit="return createTarget(this.target)" target="formtarget">
  22. <!-- END OF SCRIPT -->
  23. <!/SCRIPT>
  24.  
  25. <!PREVIEW>
  26. <!-- START OF SCRIPT -->
  27. <script type="text/javascript">
  28.  
  29. function createTarget(t){
  30. window.open("", t, "width=600,height=550");
  31. return true;
  32. }
  33.  
  34. </script>
  35. <form name="sampleform" method="POST" action="/cgi-bin/formsubmit.pl" onsubmit="return createTarget(this.target)" target="formtarget">
  36.  
  37. <!-- END OF SCRIPT -->
  38. <!/PREVIEW>
  39.  
  40. <!RELATED>NONE<!/RELATED>